package JMSRaceServer;

import java.io.Serializable;

/* OBJECT NEEDED TO HOLD DETAILS THAT COME FROM THE DATABASE
 * BUT NEED TO BE TRANSMITED TO THE CORBA CLIENT INSIDE A STRUCT
 */
public class RaceDO implements Serializable{
	private String name;
	private float distance;
	private String date;
	private int places;

	public RaceDO(String rn, float dist, String d, int p) {
		name = rn;
		distance = dist;
		date = d;
		places = p;
	}

	public String getName() {
		return name;
	}
	
	public float getDistance() {
		return distance;
	}

	public String getDate() {
		return date;
	}

	public int getPlaces() {
		return places;
	}
}
